import React, { useCallback } from 'react';
import { Card, Button } from 'antd'
import { useNavigate } from 'react-router-dom';

export const Login = () => {
	const navigate = useNavigate();
	const login = useCallback(() => { 
		navigate("/");
	}, []);
	

	return <Card title="登录页面">
		<Button onClick={login}>登陆</Button>
	</Card>;
};
